@extends('admin.layout.layout')
@section('title')
<title>友链修改页面</title>
<script type="text/javascript" charset="utf-8" src="/public/baidu/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/baidu/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/public/baidu/lang/zh-cn/zh-cn.js"></script>
@stop
@section('content')

<div class="container">

    
<div class="col-lg-12">
    <h1 class="page-header">友链修改</h1>
</div>
<!-- /.col-lg-12 -->


      <form role="form" class="form-horizontal col-md-6 col-md-offset-3" action={{url('/admin/frilk/update')}} method="post"  enctype="multipart/form-data">
                            <input name="id" type="hidden" class="form-control" id="inputPassword1" value="{{ $frilk->id }}">
                            <div class="form-group">
                                <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">友链关键词</label>
                                <div class="col-lg-10">
                                    <input name="flkws" type="text" class="form-control" id="inputPassword1" value="{{ $frilk->flkws}}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">友链网址</label>
                                <div class="col-lg-10">
                                    <input name="flurl" type="text" class="form-control" id="inputPassword1" value="{{ $frilk->flurl }}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="exampleInputFile2" class="col-lg-2 col-sm-2 control-label">友链图片</label>
                                <div class="col-lg-10">
                                <input name="flpic" type="file" id="exampleInputFile2" value="{{ $frilk->flpic}}">
                                @if(!empty($frilk->flpic))
                                <img src="{{ $frilk->flpic}}"width=100px;height=100px;>
                                @endif
                                </div>
                            </div>

                          <div class="form-group">
                                <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">友链描述</label>
                                <div class="col-lg-10">
                                    <input name="editorValue" type="text" class="form-control" id="inputPassword1" value="{!!$frilk->editorValue!!}">
                                </div>
                            {{ csrf_field() }}
                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-primary">确认修改</button>
                                    <button type="reset" class="btn btn-primary">重置</button>
                                </div>
                            </div>
        
      </form>
</div>
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor',{
    toolbars: [
    ['fullscreen', 'source', 'undo', 'redo'],
    ['bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc','simpleupload', 'insertimage',  'edittable', 'edittd',  'link',  'emotion',  'spechars', 'searchreplace',  'map', 'gmap', 'insertvideo']
]
    });
</script>
@stop